﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using PmSoft.Core.Domain.Entities;
using PmSoft.Core.Domain.Entities.Caching;
using PmSoft.Data.Abstractions.Attributes;

namespace Cmsp3.Common.Domains
{
	/// <summary>
	/// 用户角色关联信息
	///</summary>
	[Table("sys_user_role")]
	[CacheSetting(true, PropertyNamesOfArea = "UserId")]
	[Description("用户角色关联信息")]
	public class SysUserRole : Entity<int>
	{
		/// <summary>
		/// 主键
		/// </summary>
		[PrimaryKey("id")]
		public override int Id { get; set; }
		/// <summary>
		/// 用户ID 
		///</summary>
		[Column("user_id")]
		public int UserId { get; set; }
		/// <summary>
		/// 角色ID 
		///</summary>
		[Column("role_id")]
		public int RoleId { get; set; }
 

	}
}
